package com.zr.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.BaseDao;
import com.zr.dao.FindPointDao;
import com.zr.model.Proxy;
import com.zr.model.Psfwb;
import com.zr.service.SaveProxyService;
@Service("savep")
public class SaveProxyServiceImpl implements SaveProxyService{
	
	@Resource
	private BaseDao baseDao;
	@Resource
	private FindPointDao fff;
	
	@Override
	public void saveproxy(String pname,String pname1,int uid) {
		int pid = fff.findPn(pname1).getPid();
		Psfwb p = new Psfwb();
		p.setDname(pname);
		p.setUid(uid);
		p.setPid(pid);
		baseDao.save(p);
	}

}
